package com.ruoyi.business.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 收益流水对象 t_income_log
 * 
 * @author laoguo
 * @date 2025-08-12
 */
public class TIncomeLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 流水ID */
    @Excel(name = "流水ID")
    private Long logId;

    /** 收益人ID(合作商/经销商) */
    @Excel(name = "收益人ID(合作商/经销商)")
    private Long userId;

    /** 收益人类型(0合作商 1经销商) */
    @Excel(name = "收益人类型(0合作商 1经销商)")
    private String userType;

    /** 收益类型(0设备碾米分成 1商品销售分成) */
    @Excel(name = "收益类型(0设备碾米分成 1商品销售分成)")
    private String incomeType;

    /** 收益金额 */
    @Excel(name = "收益金额")
    private BigDecimal incomeAmount;

    /** 来源ID(如订单ID,设备使用记录ID) */
    @Excel(name = "来源ID(如订单ID,设备使用记录ID)")
    private Long sourceId;

    /** 来源单号 */
    @Excel(name = "来源单号")
    private String sourceSn;

    /** 关联设备ID */
    @Excel(name = "关联设备ID")
    private Long deviceId;

    public void setLogId(Long logId) 
    {
        this.logId = logId;
    }

    public Long getLogId() 
    {
        return logId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setUserType(String userType) 
    {
        this.userType = userType;
    }

    public String getUserType() 
    {
        return userType;
    }

    public void setIncomeType(String incomeType) 
    {
        this.incomeType = incomeType;
    }

    public String getIncomeType() 
    {
        return incomeType;
    }

    public void setIncomeAmount(BigDecimal incomeAmount) 
    {
        this.incomeAmount = incomeAmount;
    }

    public BigDecimal getIncomeAmount() 
    {
        return incomeAmount;
    }

    public void setSourceId(Long sourceId) 
    {
        this.sourceId = sourceId;
    }

    public Long getSourceId() 
    {
        return sourceId;
    }

    public void setSourceSn(String sourceSn) 
    {
        this.sourceSn = sourceSn;
    }

    public String getSourceSn() 
    {
        return sourceSn;
    }

    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logId", getLogId())
            .append("userId", getUserId())
            .append("userType", getUserType())
            .append("incomeType", getIncomeType())
            .append("incomeAmount", getIncomeAmount())
            .append("sourceId", getSourceId())
            .append("sourceSn", getSourceSn())
            .append("deviceId", getDeviceId())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .toString();
    }
}
